package com.taobao.yugong.translator;

import com.taobao.yugong.common.db.meta.ColumnValue;
import com.taobao.yugong.common.model.record.Record;

/**
 * @description: 物品表数据同步
 * @website: http://www.ziroom.com
 * @author: yanglp
 * @email: yanglp@ziroom.com
 * @date: 2020-11-02 15:29
 * @since: 1.0.0
 */
public class BzRoomNewDataTranslator extends AbstractDataTranslator implements DataTranslator {
    @Override
    public String translatorSchema() {
        return "jz_resblock_archives";
    }

    @Override
    public String translatorTable() {
        return "jra_room_new";
    }

    @Override
    public boolean translator(Record record) {

        record.setTableName("jra_room_new");


        ColumnValue ORDER_CODE = record.getColumnByName("ORDER_CODE");
        record.getColumns().remove(ORDER_CODE);

        ColumnValue BASIC_PRICE = record.getColumnByName("BASIC_PRICE");
        record.getColumns().remove(BASIC_PRICE);

        ColumnValue SELL_PRICE = record.getColumnByName("SELL_PRICE");
        record.getColumns().remove(SELL_PRICE);

        ColumnValue ROOM_STATUS_CODE = record.getColumnByName("ROOM_STATUS_CODE");
        record.getColumns().remove(ROOM_STATUS_CODE);

        ColumnValue ROOM_PROPERTY_CODE = record.getColumnByName("ROOM_PROPERTY_CODE");
        record.getColumns().remove(ROOM_PROPERTY_CODE);

        ColumnValue DEPTH = record.getColumnByName("DEPTH");
        record.getColumns().remove(DEPTH);


        ColumnValue FACE_WIDTH = record.getColumnByName("FACE_WIDTH");
        record.getColumns().remove(FACE_WIDTH);

        ColumnValue BUILD_AREA = record.getColumnByName("BUILD_AREA");
        record.getColumns().remove(BUILD_AREA);

        ColumnValue CLEAR_HEIGHT = record.getColumnByName("CLEAR_HEIGHT");
        record.getColumns().remove(CLEAR_HEIGHT);

        ColumnValue MEZZANINE = record.getColumnByName("MEZZANINE");
        record.getColumns().remove(MEZZANINE);

        ColumnValue INTERIOR_OF_HOUSE_FLOOR = record.getColumnByName("INTERIOR_OF_HOUSE_FLOOR");
        record.getColumns().remove(INTERIOR_OF_HOUSE_FLOOR);

        ColumnValue DRAIN = record.getColumnByName("DRAIN");
        record.getColumns().remove(DRAIN);

        ColumnValue IS_SUBMIT = record.getColumnByName("IS_SUBMIT");
        record.getColumns().remove(IS_SUBMIT);

        ColumnValue OWNER_SIGN_NUM = record.getColumnByName("OWNER_SIGN_NUM");
        record.getColumns().remove(OWNER_SIGN_NUM);

        ColumnValue SOUND_INSULATION = record.getColumnByName("SOUND_INSULATION");
        record.getColumns().remove(SOUND_INSULATION);

        ColumnValue REMARK = record.getColumnByName("REMARK");
        record.getColumns().remove(REMARK);

        ColumnValue PARENT_ID = record.getColumnByName("PARENT_ID");
        record.getColumns().remove(PARENT_ID);

        ColumnValue ROOM_FEATURE = record.getColumnByName("ROOM_FEATURE");
        record.getColumns().remove(ROOM_FEATURE);

        ColumnValue AREA_FEATURE = record.getColumnByName("AREA_FEATURE");
        record.getColumns().remove(AREA_FEATURE);

        ColumnValue WINDOWS = record.getColumnByName("WINDOWS");
        record.getColumns().remove(WINDOWS);

        ColumnValue CURTAIN = record.getColumnByName("CURTAIN");
        record.getColumns().remove(CURTAIN);

        ColumnValue EXHAUST_FAN = record.getColumnByName("EXHAUST_FAN");
        record.getColumns().remove(EXHAUST_FAN);

        ColumnValue TERRACE = record.getColumnByName("TERRACE");
        record.getColumns().remove(TERRACE);

        ColumnValue GARDEN_TYPE = record.getColumnByName("GARDEN_TYPE");
        record.getColumns().remove(GARDEN_TYPE);

        ColumnValue NATURAL_CLAY = record.getColumnByName("NATURAL_CLAY");
        record.getColumns().remove(NATURAL_CLAY);

        ColumnValue PARLOUR_COLOR = record.getColumnByName("PARLOUR_COLOR");
        record.getColumns().remove(PARLOUR_COLOR);

        ColumnValue AREA_STUFF = record.getColumnByName("AREA_STUFF");
        record.getColumns().remove(AREA_STUFF);

        ColumnValue WINDOW_FACE = record.getColumnByName("WINDOW_FACE");
        record.getColumns().remove(WINDOW_FACE);

        ColumnValue COOKER_TYPE = record.getColumnByName("COOKER_TYPE");
        record.getColumns().remove(COOKER_TYPE);

        ColumnValue COOKER_PUT_TYPE = record.getColumnByName("COOKER_PUT_TYPE");
        record.getColumns().remove(COOKER_PUT_TYPE);

        ColumnValue FLASH = record.getColumnByName("FLASH");
        record.getColumns().remove(FLASH);

        ColumnValue PHOTO_URL = record.getColumnByName("PHOTO_URL");
        record.getColumns().remove(PHOTO_URL);

        ColumnValue SALES_PRICE = record.getColumnByName("SALES_PRICE");
        record.getColumns().remove(SALES_PRICE);

        ColumnValue IS_CON = record.getColumnByName("IS_CON");
        record.getColumns().remove(IS_CON);


        ColumnValue STYLE_RULE_ID = record.getColumnByName("STYLE_RULE_ID");
        record.getColumns().remove(STYLE_RULE_ID);

        ColumnValue PHOTO_LAST_MODIFY_TIME = record.getColumnByName("PHOTO_LAST_MODIFY_TIME");
        record.getColumns().remove(PHOTO_LAST_MODIFY_TIME);


        ColumnValue CONFIGURATIONSCHEME_ID = record.getColumnByName("CONFIGURATIONSCHEME_ID");
        record.getColumns().remove(CONFIGURATIONSCHEME_ID);

        ColumnValue UPSELL_PRICE = record.getColumnByName("UPSELL_PRICE");
        record.getColumns().remove(UPSELL_PRICE);

        ColumnValue UPSELL_DATE = record.getColumnByName("UPSELL_DATE");
        record.getColumns().remove(UPSELL_DATE);

        ColumnValue ROOM_EVALUATION_TITLE = record.getColumnByName("ROOM_EVALUATION_TITLE");
        record.getColumns().remove(ROOM_EVALUATION_TITLE);

        ColumnValue ROOM_EVALUATION_PRICE = record.getColumnByName("ROOM_EVALUATION_PRICE");
        record.getColumns().remove(ROOM_EVALUATION_PRICE);

        ColumnValue ROOM_EVALUATION_CONFIG = record.getColumnByName("ROOM_EVALUATION_CONFIG");
        record.getColumns().remove(ROOM_EVALUATION_CONFIG);

        ColumnValue ROOM_EVALUATION_HTYPE = record.getColumnByName("ROOM_EVALUATION_HTYPE");
        record.getColumns().remove(ROOM_EVALUATION_HTYPE);

        ColumnValue ROOM_EVALUATION_NEIGHBOUR = record.getColumnByName("ROOM_EVALUATION_NEIGHBOUR");
        record.getColumns().remove(ROOM_EVALUATION_NEIGHBOUR);

        ColumnValue ROOM_EVALUATION_TRUTH = record.getColumnByName("ROOM_EVALUATION_TRUTH");
        record.getColumns().remove(ROOM_EVALUATION_TRUTH);


        ColumnValue TEST_COL = record.getColumnByName("TEST_COL");
        record.getColumns().remove(TEST_COL);


        ColumnValue STATUS = record.getColumnByName("STATUS");
        record.getColumns().remove(STATUS);


        ColumnValue RENEWAL_SALES_PRICE = record.getColumnByName("RENEWAL_SALES_PRICE");
        record.getColumns().remove(RENEWAL_SALES_PRICE);


        ColumnValue EFFECT_DATE = record.getColumnByName("EFFECT_DATE");
        record.getColumns().remove(EFFECT_DATE);


        ColumnValue LAST_MODIFY_TIME_SYNCHRONOUS = record.getColumnByName("LAST_MODIFY_TIME_SYNCHRONOUS");
        record.getColumns().remove(LAST_MODIFY_TIME_SYNCHRONOUS);


        ColumnValue IS_AI_LOCK = record.getColumnByName("IS_AI_LOCK");
        record.getColumns().remove(IS_AI_LOCK);


        ColumnValue FIRST_PHOTO_UUID = record.getColumnByName("FIRST_PHOTO_UUID");
        record.getColumns().remove(FIRST_PHOTO_UUID);


        ColumnValue FIRST_PHOTO_PATH = record.getColumnByName("FIRST_PHOTO_PATH");
        record.getColumns().remove(FIRST_PHOTO_PATH);


        ColumnValue SECOND_PHOTO_UUID = record.getColumnByName("SECOND_PHOTO_UUID");
        record.getColumns().remove(SECOND_PHOTO_UUID);

        ColumnValue SECOND_PHOTO_PATH = record.getColumnByName("SECOND_PHOTO_PATH");
        record.getColumns().remove(SECOND_PHOTO_PATH);


        ColumnValue CREATE_TIME = record.getColumnByName("CREATE_TIME");
        record.getColumns().remove(CREATE_TIME);

        ColumnValue LAST_MODIFY_TIME_PRICE_STATUS = record.getColumnByName("LAST_MODIFY_TIME_PRICE_STATUS");
        record.getColumns().remove(LAST_MODIFY_TIME_PRICE_STATUS);


        ColumnValue LAST_MODIFY_TIME_ORTHER = record.getColumnByName("LAST_MODIFY_TIME_ORTHER");
        record.getColumns().remove(LAST_MODIFY_TIME_ORTHER);




        return super.translator(record);
    }
}